@charset "utf-8";

@yellowColor: #ffd97b;

*:not(input,textarea) {
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-appearance: none;
  overflow-scrolling: touch;
}
* {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
body {
  position: relative;
  margin: 0;
  font-family: hevetica, 'microsoft yahei', Arial, simsun, sans-serif;
  color: #333;
  overflow-x: hidden;
}
p,h1,h2,h3,h4,h5,h6,dl,dd,dt,input,ul,ol,li,figure {
  margin: 0;
  padding: 0;
}
li {
  list-style-type: none;
}
em, i {
  font-style: normal;
}
a {
  text-decoration: none;
  color: #666;
  cursor: pointer;
}
img {
  border: none;
  width: 100%;
  height: auto;
  vertical-align: top;
}
.clearfix:after {
  content: '';
  display: block;
  clear: both;
  line-height: 0;
}
.zadan-body{
  background: url(../image/zadan-bg.png) no-repeat 0 0;
  background-size: cover;
}
//页面加载中……
.loading-overlay{
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  img{
    position: absolute;
    left: 50%;
    top: 50%;
    width: 1rem;
    height: 1rem;
    transform: translate(-50%, -50%);
  }
}
//logo
.zadan-logo{
  margin: 0 auto;
  padding-top: .46rem;
  width: 1rem;
  height: .8rem;
}
//音乐播放按钮
.music-icon{
  position: absolute;
  z-index: 100;
  left: .2rem;
  top: .2rem;
  width: .7rem;
  height: .7rem;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
  &.on{
    background-image: url(../image/music-on.png);
    animation: musicon 5s linear infinite;
  }
  &.off{
    background-image: url(../image/music-off.png);
  }
}
@keyframes musicon {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
//“没有砸蛋机会”的提示框
.layer-toast{
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background-color: rgba(0,0,0,.1);
  z-index: 1000;
  .layer-content{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0,0,0,.65);
    border-radius: 10px;
    padding: .2rem .25rem;
    line-height: 1.8;
    font-size: 14px;
    color: #fff;
    text-align: center;
  }
}
//砸金蛋样式
.stage {
  position:relative;
  margin: 2.85rem 0 0 0;
  width:100%;
  height: 5.6rem;
  background: url(../image/stage.png) no-repeat center 82%;
  background-size: contain;
  canvas{
    margin-left: .1rem;
  }
  .gift-img{
    position: absolute;
    z-index: 1000;
    text-align: center;
    &.on{
      animation: giftup .4s linear 1;
    }
    img{
      display: none;
      margin: 0 auto;
      width: 70%;
      height: auto;
    }
  }
  .hit{
    position:absolute;
    z-index:1000;
    pointer-events:none;
    background: url(../image/hit.png) no-repeat center center;
    background-size: contain;
    &.on{
      animation:hit .3s 1 forwards;
      transform-origin: 80% 80%;
    }
  }
}
@keyframes hit {
  0% {
    transform:rotate(15deg)
  }
  100% {
    transform:rotate(-35deg)
  }
}
@keyframes giftup {
  from {
    transform: translate3D(0 ,15%, 0);
  }
  to {
    transform: translate3D(0, 0, 0);
  }
}

//抽奖次数
.zadan-count{
  margin: -.6rem 0 .2rem;
  text-align: center;
  color: #fff;
  font-size: 18px;
  letter-spacing: 1px;
  font-family: simsun;
  font-weight: 600;
  .count-text{
    padding: 0 3px;
    font-family: Arial;
    color: @yellowColor;
    font-size: 20px;
  }
}
//我的中奖信息
.myprize-box{
  display: none;
  margin: .3rem auto;
  width: 92%;
  height: 2.2em;
  line-height: 2.2em;
  text-align: center;
  border-radius: 2.2em;
  background-color: #420000;
  font-size: 12px;
  color: #e5e5e5;
  span{
    padding: 0 3px;
    color: @yellowColor;
  }
  span.myprize-status{
    color: #fff;
    &.received{
      color: @yellowColor;
    }
  }
}
//活动规则
.rule-box{
  margin: .4rem .2rem;
  padding: .15rem .2rem .05rem;
  border: 1px dashed @yellowColor;
  border-radius: .1rem;
  font-size: 12px;
  .rule-item{
    position: relative;
    margin-bottom: .08rem;
    color: @yellowColor;
    display: flex;
    .rule-item-tit{
      flex: 0 0 60px;
    }
    .rule-item-content{
      flex: 1;
    }
  }
}

//获奖结果弹窗
.result-pop{
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  color: #fff;
  font-size: 14px;
  background-color: rgba(0,0,0,.85);
  .result-popcontainer{
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
  }
  .close-btn{
    position: absolute;
    z-index: 1300;
    right: 1rem;
    top: 0;
    width: .8rem;
    height: .8rem;
    background: url(../image/pop-close.png) no-repeat center center;
    background-size: contain;
  }
  .result-bgimg{
    position: absolute;
    z-index: 1000;
    margin-top: -.11rem;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: url(../image/light.png) no-repeat center center;
    background-size: contain;
    transform: scale(1.2);
    transform-origin: 45% 45%;
    animation: lightbg 2s ease-in-out 1;
  }
  .result-imgcontainer{
    position: relative;
    z-index: 1200;
    text-align: center;
    .gift-box{
      position: relative;
      margin: 1.2rem auto .4rem;
      width: 4.6rem;
      height: 3.2rem;
      animation: resultImgScale .5s linear 1;
    }
  }
  .result-text{
    font-size: 16px;
    text-align: center;
  }
  .result-prompt{
    position: relative;
    z-index: 1100;
    margin: .5rem auto .3rem;
    width: 6.2rem;
    height: .7rem;
    line-height: .7rem;
    border-radius: .7rem;
    text-align: center;
    font-size: 14px;
    color: #fff;
    background-color: #ad1200;
    &:after{
      content: '';
      display: block;
      position: absolute;
      left: 8%;
      top: -.28rem;
      width: 0;
      height: 0;
      border: .15rem solid transparent;
      border-bottom-color: #ad1200;
    }
  }
  .service-phone{
    text-align: center;
    color: #fff;
    font-size: 12px;
  }
}
@keyframes resultImgScale {
  from {
    transform: scale(.6);
  }
  to {
    transform: scale(1);
  }
}
@keyframes lightbg {
  from {
    transform: scale(.6) rotate(0deg);
  }
  to {
    transform: scale(1.2) rotate(360deg);
  }
}
//砸金蛋主页上的中奖名单
.winner-list-container{
  margin: 0 .24rem;
  padding-top: .24rem;
  background: url(../image/box-tit.png) no-repeat 0 0;
  background-size:contain;
  .winner-list-box{
    margin: -.12rem .24rem 0;
    padding: .2rem 0;
    height: 100%;
    background-color: #fee0ba;
  }
  .list-tit{
    margin: 0 auto .3rem;
    width: 3.5rem;
    height: .6rem;
    line-height: .6rem;
    text-align: center;
    border-radius: .6rem;
    font-size: 18px;
    color: #7b120a;
    background-color: #ffcd8d;
  }
  .table-head{
    height: 1.7em;
    font-size: 14px;
    color: #7b120a;
  }
  .table-body{
    position: relative;
    height: 204px;
    overflow: hidden;
    .winner-list{
      position: relative;
      li{
        height: 1.7em;
        line-height: 1.7em;
        font-size: 12px;
      }
      span{
        font-size: 12px;
        color: #1a1a1a;
      }
    }
  }
  .table-head,.winner-list{
    span{
      float: left;
      width: 33.33%;
      height: 100%;
      text-align: center;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
  }
}
@keyframes marquee {
  from{
    transform: translate3D(0, 0, 0);
  }
  to{
    transform: translate3D(0, -100%, 0);
  }
}